package com.hkd.common.api;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author HKD
 * @date 2022/8/20 18:25
 */
@Data
public class BaseEntity implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    private String createId;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    private String updateId;
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDel;
}
